package com.gpframework.common.enums;

import lombok.Getter;

/**
 * @author BrinedFish
 * @create 2022-04-21 17:33
 */
@Getter
public enum UserCardRecordEnum {

    /**
     * user_card_record#open_card_type
     */
    IMMEDIATELY_OPEN_CARD("立即开卡", "10"),

    /**
     * user_card_record#status
     */
    REFUND("退款", "-20"),
    UNPAID("未付款", "-5"),
    DISABLE("未启用", "0"),
    NORMAL_USE("正常使用", "10"),
    EXPIRED("过期", "100"),

    CARD_SOURCE_THEIR_OWN("卡来源：自行办理", "10"),
    CARD_SOURCE_INTO_CARD("卡来源：接收转卡", "20"),

    CONTINUATION_CARD_CACHE_KEY("续卡缓存key"),

    SUB_NUM("扣除"),

    /**
     * 是否升级或记录标识
     */
    IS_UPGRADE("是"),
    ;
    /**
     * 业务名称
     */
    private String name;

    private String key;

    private UserCardRecordEnum() {
    }

    private UserCardRecordEnum(String name) {
        this.name = name;
    }

    private UserCardRecordEnum(String name, String key) {
        this.name = name;
        this.key = key;
    }
}
